import 'package:get/get.dart';
import 'package:jpush_flutter/jpush_flutter.dart';

class AccountSecurityController extends GetxController{


  String? pushEnabled;

  checkPush(){
    JPush jpush = JPush();

    jpush.isNotificationEnabled().then((value) {
      print('value ========${value}');
      if(value == true){
        pushEnabled = '已开启';
      }else{
        pushEnabled = '已开启';
      }
      update();
    });
  }

  @override
  void onInit() {
    // TODO: implement onInit
    super.onInit();
    checkPush();
  }
}